<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html>
<html lang="zh-cmn-Hans" class="wide wow-animation smoothscroll scrollTo">
  <head>
    <?php include template("layouts","header"); ?>
    <script type="text/javascript" src="<?php echo JS_PATH;?>cookie.js"></script>
		<script type="text/javascript" src="<?php echo JS_PATH;?>search_common.js"></script>
  </head>
  <body>
    <!-- Page-->
    <div class="page text-center">
      <!-- Page Header-->
      <header class="page-head">
        <?php include template("layouts","navbar"); ?>
      </header>
			<!-- Modern Breadcrumbs-->
			<section class="breadcrumb-modern context-dark text-md-left">
			  <div class="shell section-34 section-md-top-110 section-md-bottom-41">
			    <h1>关键字</h1>
			    <ul class="list-inline list-inline-arrows p offset-top-34 offset-md-top-70">
			      <li><a href="<?php echo siteurl($siteid);?>">首页</a></li>
			      <li><a href="#">关键字</a></li>
			    </ul>
			  </div>
			</section>

      <!-- Page Content-->
      <main class="page-content">
        <!-- Masonry Blog-->
        <!-- <div id="fb-root"></div> -->
        <section class="section-98 section-sm-110">
          <div class="shell">
            <div class="range text-left">
              <div class="cell-md-10 cell-lg-8">
                <h6>总共有 <?php echo $total;?> 条记录</h6>
                <hr class="text-subline">

								<div>
									<article class="post post-modern post-modern-classic post-modern-classic-full">
										<?php if($datas) { ?>
											<?php $n=1;if(is_array($datas)) foreach($datas AS $r) { ?>
											<section class="post-content text-left">
												<div class="post-title offset-top-8">
													<h4 class="text-bold"><a href="<?php echo $r['url'];?>"><?php echo $r['title'];?></a></h4>
												</div>
												<div class="post-body">
													<?php echo $r['description'];?>
												</div>
											</section>
											<hr class="text-classic">
											<?php $n++;}unset($n); ?>
										<?php } else { ?>
											<section class="post-content text-left">
												暂无信息...
											</section>
										<?php } ?>
									</article>
								</div>
								<div class="offset-top-20"><?php echo $pages;?></div>
              </div>
              <div class="cell-sm-10 cell-md-8 cell-lg-4 offset-top-66 offset-md-top-90 offset-lg-top-0">
								<div class="blog-grid-sidebar inset-lg-left-30">
                  <!-- Aside-->
                  <aside class="text-left">
                    <div>
											<?php include template("layouts","c_search"); ?>
                    </div>
                  </aside>
                </div>

              </div>
            </div>
          </div>
        </section>
      </main>
      <?php include template("layouts","footer"); ?>
    </div>
    <?php include template("layouts","global"); ?>
    <?php include template("layouts","javascript"); ?>
		<script type="text/javascript" src="<?php echo JS_PATH;?>search_history.js"></script>
    <?php if($setting['suggestenable']) { ?>
    <script type="text/javascript" src="<?php echo JS_PATH;?>jquery.suggest.js"></script>
    <script type="text/javascript" src="<?php echo JS_PATH;?>search_suggest.js"></script>
    <?php } ?>
  </body>
</html>




<!--main-->
<div class="main">
	<div class="col-left">
    	<div class="crumbs"><a href="<?php echo siteurl($siteid);?>">首页</a><span> > </span><?php echo catpos($catid);?> 标签：<font color="red"><?php echo $tag;?></font> 总共有 <?php echo $total;?> 条记录</div>
        <ul class="list lh24 f14">
<?php $n=1;if(is_array($datas)) foreach($datas AS $r) { ?>
	<li><span class="rt"><?php echo date('Y-m-d H:i:s',$r[inputtime]);?></span>·<a href="<?php echo $r['url'];?>" target="_blank"<?php echo title_style($r[style]);?>><?php echo $r['title'];?></a></li>
	<?php if($n%5==0) { ?><li class="bk20 hr"></li><?php } ?>
<?php $n++;}unset($n); ?>
        </ul>
        <div id="pages" class="text-c"><?php echo $pages;?></div>
  </div>
    <div class="col-auto">
        <div class="box">
            <h5 class="title-2">频道总排行</h5>
             <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=3ce0c92850ba1ffd809f82f2a88eb97a&action=hits&catid=%24catid&num=10&order=views+DESC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'hits')) {$data = $content_tag->hits(array('catid'=>$catid,'order'=>'views DESC','limit'=>'10',));}?>
            <ul class="content digg">
				<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
					<li><a href="<?php echo $r['url'];?>" target="_blank"><?php echo $r['title'];?></a></li>
				<?php $n++;}unset($n); ?>
            </ul>
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
        </div>

    </div>
</div>
